@model ToDoListWeb.ViewModels.AddInventoryModel
@{
    Layout = null;
}

<h2>添加清单</h2>
<select id="choose-type-box" name="typeId">
    @if (Model.User.Type != null)
    {
        <option value="@Model.Type.TypeId">清单类型：@Model.Type.TypeName</option>
        foreach (var item in Model.User.Type)
        {
            if (item.TypeId != Model.Type.TypeId)
            {
                <option value="@item.TypeId">清单类型：@item.TypeName</option>
            }
        }
    }
</select>
<input maxlength="20" id="form-set-name" type="text" name="inventoryName" placeholder="清单名称">
<a onclick="pullDownAdd()"><img id="img-cancel" src="~/images/取消.png" alt=""></a>
<a id="form-input-submit" onclick="addInventory()"><img src="~/images/回车.png"></a>